package com.kc.induction.objects;

import java.awt.Color;

import com.kc.induction.InductiveComparable;

public class Chinese implements InductiveComparable {
	private Color hairColor = Color.black;

	@Override
	public boolean inductiveCompare(InductiveComparable obj1, InductiveComparable obj2, String whatToCompare) {
		if (whatToCompare.equals("hair color") && obj1 instanceof Chinese && obj2 instanceof Chinese) {
			Chinese chinese1 = (Chinese) obj1;
			Chinese chinese2 = (Chinese) obj2;
			return chinese1.hairColor == chinese2.hairColor;
		} else {
			return false;
		}
	}

}
